package com.lzw.breezeNovel.webApp.mapper.video;

import com.lzw.breezeNovel.model.entity.pojo.video.Danmu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper.video
 * @date 2025/3/19
 * @description
 */
@Mapper
@SuppressWarnings("all")
public interface DanmuMapper {

    /**
     * 插入弹幕
     * @param danmu
     */
    void insert(Danmu danmu);

    /**
     * 根据视频id和用户id查询弹幕
     *
     * @param aLong
     * @param userId
     * @param episodes
     * @return
     */
    List<Danmu> selectByVideoIdAndUserId(Long videoId, Long userId, Long type, Integer episodes);
}
